/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bear.fe.conn2;

/**
 *
 * @author libear
 */
public class VFileHistory  implements Comparable {
    String filePath;
    long statusUpdateTime;  

    public VFileHistory(String filePath,long statusUpdateTime) {
        this.filePath = filePath;
     
        this.statusUpdateTime = statusUpdateTime;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }   

    public long getStatusUpdateTime() {
        return statusUpdateTime;
    }

    public void setStatusUpdateTime(long statusUpdateTime) {
        this.statusUpdateTime = statusUpdateTime;
    }

    public int compareTo(Object o) {
        VFileHistory vo = (VFileHistory)o;
        if(this.statusUpdateTime>vo.statusUpdateTime)return 1;
        else if(this.statusUpdateTime<vo.statusUpdateTime) return -1;
        else return 0;
                
    }
    
    public String toString(){
        return "time:"+this.statusUpdateTime+" global path:"+this.getFilePath();
    }
}
